package com.ticket.sass.provider.util;

import java.lang.reflect.Type;

/**
 * @author ywb
 * @date 2023-02-23 14:14
 */
public class ModelUtil extends org.modelmapper.ModelMapper {
    public <D> D mapToMap(Object obj, Class<D> cls){
        if (obj == null){
            return null;
        }
        return this.map(obj, cls);
    }
    
    public <D> D listToList(Object obj, Type type){
        if (obj == null){
            return null;
        }
        return this.map(obj, type);
    }
}
